package com.isunland.managesystem.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;

/**
 * 对象功能: 实际租赁
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/2/16 16:48
 */

public class LeaseActualListActivity extends SingleFragmentActivity {

  private String mainId;

  public static void newInstance(android.support.v4.app.Fragment fragment, Activity context,
      String mainId, int requestCode) {
    if (fragment == null || context == null) return;
    Intent i = new Intent(context, LeaseActualListActivity.class);
    i.putExtra(LeaseActualListFragment.EXTRA_MAINID, mainId);
    fragment.startActivityForResult(i, requestCode);
  }

  @Override protected void onCreate(Bundle arg0) {
    mainId = getIntent().getStringExtra(LeaseActualListFragment.EXTRA_MAINID);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragment() {
    return LeaseActualListFragment.newInstance(mainId);
  }
}
